FROM eclipse-temurin:17-jre

ENV PARAMS=""

ENV JVMOPTIONS="-Dspring.profiles.active=test"

COPY ./target/Movies-0.0.1-SNAPSHOT.jar /app.jar

#ENTRYPOINT ["java","$JVMOPTIONS","-jar","/app.jar","$PARAMS"]
CMD java ${JVMOPTIONS} -jar /app.jar ${PARAMS}